using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class LVStart : MonoBehaviour
{
    private Animator animator;

    private void Awake()
    {
        animator = GetComponent<Animator>();
        gameObject.SetActive(false);
    }

    public void ShowLVStart()
    {
        gameObject.SetActive(true);
        animator.Play("LVStart", 0, 0);
        AudioManager.Instance.PlayeEFAudio(GameManger.Instance.GameConf.ReadSetPlant);
    }

    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        if (animator.GetCurrentAnimatorStateInfo(0).normalizedTime>=1)
        {
            gameObject.SetActive(false);
        }
    }
}
